#ifndef PLAYER_H
#define PLAYER_H

#include "CIBeAttackInterface.h"

class cGamepad;
class MessageBus;

class cPlayer : public CIBeAttackInterface
{
public:
	cPlayer(int LEFT, int RIGHT, int UP, int DOWN, int B, int A, int _speed_jump_height);
	~cPlayer();
	void abc(MessageBus &g_bus);
	void drive(int speed);
	void update();
	void changeStat(int staty);
	void draw();
	void die();
	void movecam();

	void MakeMyWalk();
	virtual void BeAttacked(float fDamage);

	int H, W, invincible;

	bool dir, top_touch, top_bonus_touch, down_touch, left_touch, right_touch, touch_now;
	bool Aed, Bed, KeyDown_down;
	float y_speed, x_speed, max_speed;
	bool dead, incincible, STARPOWER_OVER;

	float x, y;
	SDL_Rect rect;
	SDL_Surface *Surface_R[3][4], *Surface_L[3][4];

	int walkcount, walkcount2, walkadd, JUMPcount;
	int jumpheight, STARPOWER;
	int stat, speed_jump_height;

	int K_LEFT, K_RIGHT, K_UP, K_DOWN, K_B, K_A;
};

#endif